<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<title>物流配送管理系统</title>
<link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath }/css/readerTyper.css" />
	<script type="text/javascript" src="../../js/goods.js"></script>
</head>
<body style="font-size:20px">
<%@ include file="navigation.jsp" %>
	<div id="content">
	<p id="p"> 当前位置：商品管理 > 商品类型管理 >>></p>
		<div>		
			<div align="left">
			<input id="button" type="button" onclick="window.location='${pageContext.request.contextPath}/goods/toAddGoodsType'" value="添加商品类型">
		    </div>
		<table border="1" cellpadding="0" cellspacing="0">
			<tr bgcolor="#fed6ad">
				<td class="t1">序号</td>
				<td class="t1">商品类型名称</td>
				<td class="t1">修改</td>
				<td class="t1">删除</td>
			</tr>
			<c:forEach items="${goodsType}" var="gst" varStatus="index">
				<tr>
					<td class="t1" type="hidden" value="${gst.goodsTypeId}">${index.index+1 }</td>
					<td class="t1">${gst.goodsType}</td>
					<td class="t1"><a
						href="${pageContext.request.contextPath}/goods/toUpdGoodsType?id=${gst.goodsTypeId}">修改</a></td>
					<td class="t1"><a
						href="${pageContext.request.contextPath}/goods/delGoodsType?id=${gst.goodsTypeId}"
						onclick="return confirm('确定删除${gst.goodsType}吗?');">删除</a></td>
				</tr>
			</c:forEach>
		</table>
		</div>
	</div>
</body>
</html>